<h1>Empleados</h1>
    <div class="area" >
		<?php
	echo $this->Form->create();
    echo $this->Form->input('Id Empleado');
    echo $this->Form->input('Nombre');
    echo $this->Form->input('Apellido');
    echo $this->Form->end('Buscar');
    ?>
    </div>
    </br>
<div class="area" align="center">
    <table>
        <tr>
            <th width="50">Id Empleado</th>
            <th width="80">Nombre</th>
            <th width="80">Apellido</th>
            <th width="50">DUI</th>
            <th width="150">Contratacion</th>
            <th width="100">Operacion</th>
            


        </tr>

        <!-- Here is where we loop through our $posts array, printing out post info -->

        <?php foreach ($empleados as $empleado): //pr ($empleado);?>
        <tr>
            <td><div align="left"><?php echo $empleado[0]['idempleado']; ?></div></td>
            <td><div align="justify"><?php echo $empleado[0]['pnombre'].' '.$empleado[0]['snombre']; ?></div></td>
            <td><div align="justify"><?php echo $empleado[0]['papellido'].' '.$empleado[0]['sapellido']; ?></div></td>
            <td><div align="center"><?php echo $empleado[0]['dui']; ?></div></td>
            <td><div align="left"><?php echo $empleado[0]['idcat']; ?></div></td>
            <td><div align="left">
            <a href="<?php echo "/cargaacademica/empleados/modificarempleado2/".$empleado[0]['idempleado']; ?>">-Modificar</a><br />
            </div></td>
        </tr>
        <?php endforeach; ?>

    </table>
</div>
<!--
<h2>Elegir Empleado a Modificar</h2>
    <div class="area" >
	
    <form action="" method="post" accept-charset="utf-8">
			<label>Empleado</label>
        <select name="categoriaProfesor" size="1">
            <option value ="">Elija Empleado..</option>
            <?php //foreach ($empleados as $empleado): ?>
            <option value=<?php //echo $empleado['Empleados']['idempleado']; ?>><?php  //echo $empleado['Empleados']['pnombre'].' '.$empleado['Empleados']['papellido']; ?></option>
            <?php //endforeach; ?>
        </select>

        <input class="boton" type="submit" name="Buscar" id="Buscar" value="Buscar">
			</form>


    </div>-->
